-- GENERATED SPELL FOR [Mindless Wight] --


function spell0_27287(pUnit, Event) --@Smash,n/a--
pUnit:FullCastSpellOnTarget(51334,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27287', 568, 1)
end

function Sorts_27287(pUnit, Event)
local choix_sorts_27287 = math.random(0, 0)
if choix_sorts_27287 == 0 then
pUnit:RegisterEvent('spell0_27287', 1, 1)
end
end

function mob27287_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27287', math.random(1500, 3000), 1)
end

function mob27287_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27287_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27287_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27287, 1, 'mob27287_Action')
RegisterUnitEvent(27287, 2, 'mob27287_Leave')
RegisterUnitEvent(27287, 3, 'mob27287_Kill')
RegisterUnitEvent(27287, 4, 'mob27287_Die')
